package com.js.basicutils.image;

import android.content.Context;

import com.js.basicutils.PathUtils;


/**
 * @describe
 * @author: lixiaopeng
 * @Date: 2019-07-12
 */
public final class ImageLoaderUtils {

    public static String getStorageDirectory(Context context) {
        return PathUtils.getCacheDir(context).getPath();
    }

    public static String getDefaultDiskCachePath(Context context){
        StringBuilder builder = new StringBuilder();
        builder.append(getStorageDirectory(context));
        builder.append("/");
        builder.append(context.getPackageName());
        builder.append("/");
        builder.append("glideDisk");
        return builder.toString();
    }
}
